﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UtilZ.Dotnet.Ex.Communication.Net.MQBase
{
    /// <summary>
    /// MQ消息基类
    /// </summary>
    public abstract class MQMessageAbs : IMQMessage
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="messageType">消息类型</param>
        public MQMessageAbs(MQMessageType messageType)
        {
            this.MessageType = messageType;
        }


        /// <summary>
        /// 消息类型
        /// </summary>
        public MQMessageType MessageType { get; private set; }

        /// <summary>
        /// 消息体
        /// </summary>
        public abstract object Body { get; set; }
    }
}
